package com.kady.entity;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/25
 * \* Time: 14:25
 * \* 千峰JAVA2101班
 * \* Description: 菜品实体类
 * \
 */
public class Food {
    /**
     * 菜品ID
     */
    private long foodId;
    /**
     * 菜品名称
     */
    private String foodName;
    /**
     * 菜品价格
     */
    private double price;
    /**
     * 菜品会员价
     */
    private double vipPrice;
    /**
     * 菜品菜系ID
     */
    private long typeId;
    /**
     * 菜品图片路径
     */
    private String foodImage;
    /**
     * 菜品描述
     */
    private String foodDesc;
    /**
     * 菜品菜系实体
     */
    private FoodType foodType;

    public Food() {
    }

    public Food(long foodId, String foodName, double price, double vipPrice) {
        this.foodId = foodId;
        this.foodName = foodName;
        this.price = price;
        this.vipPrice = vipPrice;
    }

    public Food(String foodName, double price, double vipPrice, long typeId, String foodImage, String foodDesc, FoodType foodType) {
        this.foodName = foodName;
        this.price = price;
        this.vipPrice = vipPrice;
        this.typeId = typeId;
        this.foodImage = foodImage;
        this.foodDesc = foodDesc;
        this.foodType = foodType;
    }

    public Food(long foodId, String foodName, double price, double vipPrice, long typeId, String foodImage, String foodDesc, FoodType foodType) {
        this.foodId = foodId;
        this.foodName = foodName;
        this.price = price;
        this.vipPrice = vipPrice;
        this.typeId = typeId;
        this.foodImage = foodImage;
        this.foodDesc = foodDesc;
        this.foodType = foodType;
    }

    public long getFoodId() {
        return foodId;
    }

    public void setFoodId(long foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getVipPrice() {
        return vipPrice;
    }

    public void setVipPrice(double vipPrice) {
        this.vipPrice = vipPrice;
    }

    public long getTypeId() {
        return typeId;
    }

    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }

    public String getFoodImage() {
        return foodImage;
    }

    public void setFoodImage(String foodImage) {
        this.foodImage = foodImage;
    }

    public String getFoodDesc() {
        return foodDesc;
    }

    public void setFoodDesc(String foodDesc) {
        this.foodDesc = foodDesc;
    }

    public FoodType getFoodType() {
        return foodType;
    }

    public void setFoodType(FoodType foodType) {
        this.foodType = foodType;
    }

    @Override
    public String toString() {
        return "Food{" +
                "foodId=" + foodId +
                ", foodName='" + foodName + '\'' +
                ", price=" + price +
                ", vipPrice=" + vipPrice +
                ", typeId=" + typeId +
                ", foodImage='" + foodImage + '\'' +
                ", foodDesc='" + foodDesc + '\'' +
                ", foodType=" + foodType +
                '}';
    }
}
